package io.renren.modules.com.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;

import io.renren.modules.com.entity.ComContractAssetEntity;
import io.renren.modules.com.entity.ComContractEntity;
import io.renren.modules.sys.dao.BaseDao;

/**
 * 
 * 
 * @author pfp
 * @email
 * @date 2017-07-16 09:34:53
 */
@Mapper
public interface ComContractDao extends BaseDao<ComContractEntity> {

	ComContractEntity queryByContractNo(String contractNo);

	void deleteAllAsset(ComContractEntity comContract);

	void deleteAllImage(ComContractEntity comContract);

	List<ComContractEntity> queryByAssetId(ComContractAssetEntity entity);

	int queryContractDetailDistinctNum(Map<String, Object> param);

	List<ComContractEntity> queryContractDetailTable(Map<String, Object> map);

	List<ComContractEntity> queryContractTable(Map<String, Object> map);

	Double ftp(Map<String, Object> map);

}
